﻿/* 
 * BtCommLib - the OpenWebNet .NET Library
 *
 * Copyright (C) 2011 BTicino S.p.A.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTicino.BtCommLib.Communication
{
    public class BTOpenConstFrame
    {
        #region Public Static Member

        /// <summary>
        /// OPEN frame ACK
        /// </summary>
        public static string ACK_FRM = "*#*1##";
        /// <summary>
        /// OPEN Frame NACK
        /// </summary>
        public static string NACK_FRM = "*#*0##";
        /// <summary>
        /// OPEN Frame Command channel code
        /// </summary>
        public static string CMDCHAN_FRM = "*99*0##";
        /// <summary>
        /// OPEN frame Monitor channle code
        /// </summary>
        public static string MONCHAN_FRM = "*99*1##";
        /// <summary>
        /// OPEN Frame Ack / Nack
        /// </summary>
        public static string ACK_NACK_FRM = "*#*1##|*#*0##";

        /// <summary>
        /// OPEN connecion error, IP not in range OPEN response
        /// </summary>
        public static string NOT_IN_RANGE_FRM = "\\*#[0-9]([0-9])+##";

        #endregion
    }
}
